package com.sidianzhong.sdz.model;

import java.util.ArrayList;
import java.util.List;

public class WebStationmaterialsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public WebStationmaterialsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMaterialnameIsNull() {
            addCriterion("materialName is null");
            return (Criteria) this;
        }

        public Criteria andMaterialnameIsNotNull() {
            addCriterion("materialName is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialnameEqualTo(String value) {
            addCriterion("materialName =", value, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameNotEqualTo(String value) {
            addCriterion("materialName <>", value, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameGreaterThan(String value) {
            addCriterion("materialName >", value, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameGreaterThanOrEqualTo(String value) {
            addCriterion("materialName >=", value, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameLessThan(String value) {
            addCriterion("materialName <", value, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameLessThanOrEqualTo(String value) {
            addCriterion("materialName <=", value, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameLike(String value) {
            addCriterion("materialName like", value, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameNotLike(String value) {
            addCriterion("materialName not like", value, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameIn(List<String> values) {
            addCriterion("materialName in", values, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameNotIn(List<String> values) {
            addCriterion("materialName not in", values, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameBetween(String value1, String value2) {
            addCriterion("materialName between", value1, value2, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialnameNotBetween(String value1, String value2) {
            addCriterion("materialName not between", value1, value2, "materialname");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeIsNull() {
            addCriterion("materialType is null");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeIsNotNull() {
            addCriterion("materialType is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeEqualTo(Integer value) {
            addCriterion("materialType =", value, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeNotEqualTo(Integer value) {
            addCriterion("materialType <>", value, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeGreaterThan(Integer value) {
            addCriterion("materialType >", value, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("materialType >=", value, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeLessThan(Integer value) {
            addCriterion("materialType <", value, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeLessThanOrEqualTo(Integer value) {
            addCriterion("materialType <=", value, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeIn(List<Integer> values) {
            addCriterion("materialType in", values, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeNotIn(List<Integer> values) {
            addCriterion("materialType not in", values, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeBetween(Integer value1, Integer value2) {
            addCriterion("materialType between", value1, value2, "materialtype");
            return (Criteria) this;
        }

        public Criteria andMaterialtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("materialType not between", value1, value2, "materialtype");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyIsNull() {
            addCriterion("equipmentTypekey is null");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyIsNotNull() {
            addCriterion("equipmentTypekey is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyEqualTo(String value) {
            addCriterion("equipmentTypekey =", value, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyNotEqualTo(String value) {
            addCriterion("equipmentTypekey <>", value, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyGreaterThan(String value) {
            addCriterion("equipmentTypekey >", value, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyGreaterThanOrEqualTo(String value) {
            addCriterion("equipmentTypekey >=", value, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyLessThan(String value) {
            addCriterion("equipmentTypekey <", value, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyLessThanOrEqualTo(String value) {
            addCriterion("equipmentTypekey <=", value, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyLike(String value) {
            addCriterion("equipmentTypekey like", value, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyNotLike(String value) {
            addCriterion("equipmentTypekey not like", value, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyIn(List<String> values) {
            addCriterion("equipmentTypekey in", values, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyNotIn(List<String> values) {
            addCriterion("equipmentTypekey not in", values, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyBetween(String value1, String value2) {
            addCriterion("equipmentTypekey between", value1, value2, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmenttypekeyNotBetween(String value1, String value2) {
            addCriterion("equipmentTypekey not between", value1, value2, "equipmenttypekey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyIsNull() {
            addCriterion("equipmentkey is null");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyIsNotNull() {
            addCriterion("equipmentkey is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyEqualTo(String value) {
            addCriterion("equipmentkey =", value, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyNotEqualTo(String value) {
            addCriterion("equipmentkey <>", value, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyGreaterThan(String value) {
            addCriterion("equipmentkey >", value, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyGreaterThanOrEqualTo(String value) {
            addCriterion("equipmentkey >=", value, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyLessThan(String value) {
            addCriterion("equipmentkey <", value, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyLessThanOrEqualTo(String value) {
            addCriterion("equipmentkey <=", value, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyLike(String value) {
            addCriterion("equipmentkey like", value, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyNotLike(String value) {
            addCriterion("equipmentkey not like", value, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyIn(List<String> values) {
            addCriterion("equipmentkey in", values, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyNotIn(List<String> values) {
            addCriterion("equipmentkey not in", values, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyBetween(String value1, String value2) {
            addCriterion("equipmentkey between", value1, value2, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andEquipmentkeyNotBetween(String value1, String value2) {
            addCriterion("equipmentkey not between", value1, value2, "equipmentkey");
            return (Criteria) this;
        }

        public Criteria andMaterialpathIsNull() {
            addCriterion("materialpath is null");
            return (Criteria) this;
        }

        public Criteria andMaterialpathIsNotNull() {
            addCriterion("materialpath is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialpathEqualTo(String value) {
            addCriterion("materialpath =", value, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathNotEqualTo(String value) {
            addCriterion("materialpath <>", value, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathGreaterThan(String value) {
            addCriterion("materialpath >", value, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathGreaterThanOrEqualTo(String value) {
            addCriterion("materialpath >=", value, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathLessThan(String value) {
            addCriterion("materialpath <", value, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathLessThanOrEqualTo(String value) {
            addCriterion("materialpath <=", value, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathLike(String value) {
            addCriterion("materialpath like", value, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathNotLike(String value) {
            addCriterion("materialpath not like", value, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathIn(List<String> values) {
            addCriterion("materialpath in", values, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathNotIn(List<String> values) {
            addCriterion("materialpath not in", values, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathBetween(String value1, String value2) {
            addCriterion("materialpath between", value1, value2, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialpathNotBetween(String value1, String value2) {
            addCriterion("materialpath not between", value1, value2, "materialpath");
            return (Criteria) this;
        }

        public Criteria andMaterialformatIsNull() {
            addCriterion("materialformat is null");
            return (Criteria) this;
        }

        public Criteria andMaterialformatIsNotNull() {
            addCriterion("materialformat is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialformatEqualTo(String value) {
            addCriterion("materialformat =", value, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatNotEqualTo(String value) {
            addCriterion("materialformat <>", value, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatGreaterThan(String value) {
            addCriterion("materialformat >", value, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatGreaterThanOrEqualTo(String value) {
            addCriterion("materialformat >=", value, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatLessThan(String value) {
            addCriterion("materialformat <", value, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatLessThanOrEqualTo(String value) {
            addCriterion("materialformat <=", value, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatLike(String value) {
            addCriterion("materialformat like", value, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatNotLike(String value) {
            addCriterion("materialformat not like", value, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatIn(List<String> values) {
            addCriterion("materialformat in", values, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatNotIn(List<String> values) {
            addCriterion("materialformat not in", values, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatBetween(String value1, String value2) {
            addCriterion("materialformat between", value1, value2, "materialformat");
            return (Criteria) this;
        }

        public Criteria andMaterialformatNotBetween(String value1, String value2) {
            addCriterion("materialformat not between", value1, value2, "materialformat");
            return (Criteria) this;
        }

        public Criteria andSubtypeIsNull() {
            addCriterion("subtype is null");
            return (Criteria) this;
        }

        public Criteria andSubtypeIsNotNull() {
            addCriterion("subtype is not null");
            return (Criteria) this;
        }

        public Criteria andSubtypeEqualTo(Integer value) {
            addCriterion("subtype =", value, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeNotEqualTo(Integer value) {
            addCriterion("subtype <>", value, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeGreaterThan(Integer value) {
            addCriterion("subtype >", value, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("subtype >=", value, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeLessThan(Integer value) {
            addCriterion("subtype <", value, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeLessThanOrEqualTo(Integer value) {
            addCriterion("subtype <=", value, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeIn(List<Integer> values) {
            addCriterion("subtype in", values, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeNotIn(List<Integer> values) {
            addCriterion("subtype not in", values, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeBetween(Integer value1, Integer value2) {
            addCriterion("subtype between", value1, value2, "subtype");
            return (Criteria) this;
        }

        public Criteria andSubtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("subtype not between", value1, value2, "subtype");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}